package service;

import com.jfinal.aop.Before;
import com.jfinal.aop.Clear;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.tx.Tx;
import config.interceptor.DemoInterceptor;
import config.interceptor.TX;
import model.User;

/**
 * Created by Administrator on 2017/1/9.
 */
@Before(DemoInterceptor.class)
public class OrderService {
    @Before(TX.class)
    public void payment(int id, int userid){

        System.out.println("OrderService payment");


    }
    @Clear
    public void getone(){
        System.out.println("orderservice getone");
    }

    @Before(Tx.class)
    public void database(){


        Page<User> userPage;
    }

}
